//引入当前文件对应的less文件
require("../less/advertisement.less");
document.ready(function () {

    // 获取元素
    const loginSpan = document.querySelector(".login span");
    let re = 3
    let timeID = setInterval(function () {
        loginSpan.innerHTML = `${re}s&nbsp;|&nbsp;跳过`
        re--;
        if (re < 0) {
            clearInterval(timeID);
            location.href = "./register.html"
        }
    }, 1000);
    // 添加点击事件
    loginSpan.addEventListener("click", function () {
        clearInterval(timeID);
        location.href = "./register.html"
    })

})